package com.project.light.service.impl;

import com.project.light.dto.DataStationStatus;
import com.project.light.dto.DataStationStatusParam;
import com.project.light.dto.DateParam;
import com.project.light.mapper.DataMapper;
import com.project.light.service.DataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DataServiceImpl implements DataService {

    @Resource
    private DataMapper dataMapper;

    @Override
    public List<DataStationStatusParam> getSysList(DateParam dateParam) {
        List<DataStationStatusParam> list = dataMapper.getSysList(dateParam);
        return list;
    }

    @Override
    public List<DataStationStatus> getDataList(DateParam dateParam) {
        List<DataStationStatus> list = dataMapper.getDataList(dateParam);
        return list;
    }
}
